package com.beta.entity;

import com.baomidou.mybatisplus.annotations.IdType;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.beta.support.ResourceImagePathBuilder;

import java.io.Serializable;
import java.util.Date;

/**
 *
 * 
 *
 */
@TableName("home_banners")
public class HomeBanners implements Serializable {

	@TableField(exist = false)
	private static final long serialVersionUID = 1L;

	/**  */
	@TableId(type = IdType.AUTO)
	private Integer id;

	/**  */
	private String picUrl;

	/**  */
	private String newsUrl;

	/**  */
	private String bannerType;

	/**  */
	private Integer position;

	/**  */
	private Integer productId;

	/**  */
	private Integer productItemId;

	/**  */
	private String productName;

	/**  */
	private String cityCode;

	/**  */
	private String cityName;

	/**  */
	private Integer userId;

	/**  */
	private String userName;

	/**  */
	private Integer isAvailable;

	/**  */
	private String createdByUser;

	/**  */
	private String updatedByUser;

	/**  */
	private Date createdAt;

	/**  */
	private Date updatedAt;


	public Integer getId() {
		return this.id;
	}

	public HomeBanners setId(Integer id) {
		this.id = id;
		return this;
	}

	public String getPicUrl() {
		return ResourceImagePathBuilder.homeBannerPicPath(getId(), this.picUrl);
	}

	public HomeBanners setPicUrl(String picUrl) {
		this.picUrl = picUrl;
		return this;
	}

	public String getNewsUrl() {
		return this.newsUrl;
	}

	public HomeBanners setNewsUrl(String newsUrl) {
		this.newsUrl = newsUrl;
		return this;
	}

	public String getBannerType() {
		return this.bannerType;
	}

	public HomeBanners setBannerType(String bannerType) {
		this.bannerType = bannerType;
		return this;
	}

	public Integer getPosition() {
		return this.position;
	}

	public HomeBanners setPosition(Integer position) {
		this.position = position;
		return this;
	}

	public Integer getProductId() {
		return this.productId;
	}

	public HomeBanners setProductId(Integer productId) {
		this.productId = productId;
		return this;
	}

	public Integer getProductItemId() {
		return this.productItemId;
	}

	public HomeBanners setProductItemId(Integer productItemId) {
		this.productItemId = productItemId;
		return this;
	}

	public String getProductName() {
		return this.productName;
	}

	public HomeBanners setProductName(String productName) {
		this.productName = productName;
		return this;
	}

	public String getCityCode() {
		return this.cityCode;
	}

	public HomeBanners setCityCode(String cityCode) {
		this.cityCode = cityCode;
		return this;
	}

	public String getCityName() {
		return this.cityName;
	}

	public HomeBanners setCityName(String cityName) {
		this.cityName = cityName;
		return this;
	}

	public Integer getUserId() {
		return this.userId;
	}

	public HomeBanners setUserId(Integer userId) {
		this.userId = userId;
		return this;
	}

	public String getUserName() {
		return this.userName;
	}

	public HomeBanners setUserName(String userName) {
		this.userName = userName;
		return this;
	}

	public Integer getIsAvailable() {
		return this.isAvailable;
	}

	public HomeBanners setIsAvailable(Integer isAvailable) {
		this.isAvailable = isAvailable;
		return this;
	}

	public String getCreatedByUser() {
		return this.createdByUser;
	}

	public HomeBanners setCreatedByUser(String createdByUser) {
		this.createdByUser = createdByUser;
		return this;
	}

	public String getUpdatedByUser() {
		return this.updatedByUser;
	}

	public HomeBanners setUpdatedByUser(String updatedByUser) {
		this.updatedByUser = updatedByUser;
		return this;
	}

	public Date getCreatedAt() {
		return this.createdAt;
	}

	public HomeBanners setCreatedAt(Date createdAt) {
		this.createdAt = createdAt;
		return this;
	}

	public Date getUpdatedAt() {
		return this.updatedAt;
	}

	public HomeBanners setUpdatedAt(Date updatedAt) {
		this.updatedAt = updatedAt;
		return this;
	}

}
